Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement dynamic fusing manifest #884

Merged
merged 8 commits into from
Feb 19, 2025
Merged

Implement dynamic fusing manifest #884

merged 8 commits into from
Feb 19, 2025

Conversation

Kubuxu
Copy link
Contributor

@Kubuxu Kubuxu commented Feb 13, 2025

No description provided.

@Kubuxu Kubuxu requested a review from masih February 13, 2025 15:32
Copy link

codecov bot commented Feb 13, 2025

Codecov Report

Attention: Patch coverage is 56.62651% with 36 lines in your changes missing coverage. Please review.

Project coverage is 67.15%. Comparing base (2cbff76) to head (86fb31d).

Files with missing lines Patch % Lines
manifest/fusing_provider.go 56.62% 27 Missing and 9 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #884      +/-   ##
==========================================
- Coverage   67.43%   67.15%   -0.29%     
==========================================
  Files          85       85              
  Lines        9185     9228      +43     
==========================================
+ Hits         6194     6197       +3     
- Misses       2450     2481      +31     
- Partials      541      550       +9     
Files with missing lines Coverage Δ
manifest/fusing_provider.go 62.40% <56.62%> (-6.49%) ⬇️

... and 5 files with indirect coverage changes

@Kubuxu Kubuxu force-pushed the feat/dynamic-fusing branch from 8bc2222 to fe2621a Compare February 13, 2025 16:28
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
Copy link
Member

@masih masih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed sync in standup. I think the logic is correct 👍

Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
Copy link
Member

@masih masih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One blocker: redundant error checking in loop.

One potential blocker: the infamous go 1.22 and older timer rest issue.

Otherwise, LGTM


// NewFusingManifestProvider creates a provider that will lock into the primary manifest onces it reaches BootstrapEpoch-Finality of primary manifest
// the primary ManifestProvider needs to provide at least one manifest (or nil), a sign of life, to enable forwarding of secondary manifests.
func NewFusingManifestProvider(ctx context.Context, ec HeadGetter, secondary ManifestProvider, primary ManifestProvider) (*FusingManifestProvider, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OCD: secondary comes as first argument 😱

@Kubuxu Kubuxu added this pull request to the merge queue Feb 19, 2025
Merged via the queue into main with commit a4b857e Feb 19, 2025
12 checks passed
@Kubuxu Kubuxu deleted the feat/dynamic-fusing branch February 19, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants